package com.ict.web.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 绩效规则 对象 yzq_performance_rule
 *
 * @author ruoyi
 * @date 2022-02-15
 */
@ToString
@Data
@Accessors(chain = true)
@TableName("yzq_performance_rule")
@AllArgsConstructor
@NoArgsConstructor
public class PerformanceRule implements Serializable
{
    private static final long serialVersionUID = 1L;

    public static final String DELETE_STATUS_NORMAL = "0";
    public static final String DELETE_STATUS_UNNORMAL = "1";

    public static final String CONDITION_GT = "0";
    public static final String CONDITION_GE = "1";
    public static final String CONDITION_EQ = "2";
    public static final String CONDITION_LE = "3";
    public static final String CONDITION_LT = "4";

    @ApiModelProperty(value = "规则Id")
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long ruleId;

    @ApiModelProperty(value = "绩效指标Id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long indicatorsId;

    @ApiModelProperty(value = "规则条件(0:>，1:≥，2:=，3:≤，4:＜)")
    private String regulation;

    @ApiModelProperty(value = "目标值")
    private double value;

    @ApiModelProperty(value = "得分")
    private Double score;

    @ApiModelProperty(value = "逻辑删除：{0:正常;1:删除}")
    private String delFlag;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


}
